package com.sunagy.demand.backend.entity;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

/**
 * desc：客户实体
 * author：三餘無夢生
 * date：2018/4/12
 * time：下午3:59
 */
@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@ApiModel(value="model", description = "客户信息实体")
public class CustomerUserInfo {
    @Id
    @GeneratedValue
    private Integer id;
    @Column(name="customer_user_id")
    private Integer customerUserId;
    private String company;
    private String position;
    private String industry;
    private String province;
    private String city;
    private String district;
    private String address;
    private String phone;
    private String username;
    private String realname;
    private Boolean enable;
    private int sex;
    @CreatedDate
    private Date create_time;
    @CreatedBy
    private Integer create_id;
    @LastModifiedDate
    private Date update_time;
    @LastModifiedBy
    private Integer update_id;
}
